package com.rainy.generator.dao;

import java.util.List;

/**
 * @author liuqin on 2017/12/20
 */
public interface BaseDao<T> {

    List<T> list(Long offset, Long limit);

    Long count(Long offset,Long limit);

    void update(T entity);

    void save(T entity);

    void delete(Long id);
}
